home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmClipboardRegisterFormat.z
/
XmClipboardRegisterFormat
Wrap
Text File
|
1998-10-30
|
5KB
|
133 lines
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt((((3333UUUUXXXXNNNN))))IIIIXXXX SSSSyyyysssstttteeeemmmmXXXXmmmmVVVVCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt - A clipboard function that
registers a new format
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/CutPaste.h>
int XmClipboardRegisterFormat (_d_i_s_p_l_a_y, _f_o_r_m_a_t__n_a_m_e, _f_o_r_m_a_t__l_e_n_g_t_h)
Display * _d_i_s_p_l_a_y;
char * _f_o_r_m_a_t__n_a_m_e;
int _f_o_r_m_a_t__l_e_n_g_t_h;
(vvvvooooiiiidddd)
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt registers a new format. Each
format stored on the clipboard should have a length
associated with it; this length must be known to the
clipboard routines. Formats are known as targets in the
_I_n_t_e_r-_C_l_i_e_n_t _C_o_m_m_u_n_i_c_a_t_i_o_n _C_o_n_v_e_n_t_i_o_n_s _M_a_n_u_a_l(ICCCM). All of
the formats specified by version 1.1 of the ICCCM
conventions are preregistered. Any other format that the
application wants to use must either be 8-bit data or be
registered via this routine. Failure to register the length
of the data results in incompatible applications across
platforms having different byte-swapping orders.
_d_i_s_p_l_a_y Specifies a pointer to the DDDDiiiissssppppllllaaaayyyy structure that
was returned in a previous call to XXXXOOOOppppeeeennnnDDDDiiiissssppppllllaaaayyyy or
XXXXttttDDDDiiiissssppppllllaaaayyyy.
_f_o_r_m_a_t__n_a_m_e
Specifies the string name for the new format
(target).
_f_o_r_m_a_t__l_e_n_g_t_h
Specifies the format length in bits (8, 16, or
32).
RRRREEEETTTTUUUURRRRNNNN
_X_m_C_l_i_p_b_o_a_r_d_B_a_d_F_o_r_m_a_t
The _f_o_r_m_a_t__n_a_m_e must not be NULL, and the
_f_o_r_m_a_t__l_e_n_g_t_hmust be 8, 16, or 32.
_X_m_C_l_i_p_b_o_a_r_d_S_u_c_c_e_s_s
The function was successful.
_X_m_C_l_i_p_b_o_a_r_d_L_o_c_k_e_d
The function failed because the clipboard was
locked by another application. The application can
continue to call the function again with the same
Page 1 (printed 10/24/98)
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt((((3333UUUUXXXXNNNN))))IIIIXXXX SSSSyyyysssstttteeeemmmmXXXXmmmmVVVVCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt((((3333XXXX))))
parameters until the lock goes away. This gives
the application the opportunity to ask if the user
wants to keep trying or to give up on the
operation.
_X_m_C_l_i_p_b_o_a_r_d_F_a_i_l
The function failed because the specified format
was already registered with a different length
from that specified now. If a specified format was
already registered with the same length as that
specified now, _X_m_C_l_i_p_b_o_a_r_d_S_u_c_c_e_s_s is returned.
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy(3).
Page 2 (printed 10/24/98)